#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void delete(FILE* pf, int start, int end) {
	rewind(pf);
	int i = 0, res;
	for (i = 1; i < start; i++) {
		while (1) {
			res = fgetc(pf);
			if (res == 10) {
				break;
			}
		}
	}
	int c, flag = 0;
	int ch = fgetc(pf);
	int state[3] = { 0 };
	for (i = start; i <= end; i++) {
		flag = 0;
		while (1) {
			if (state[0] == 0) {
				if (ch == '/') {
					c = ch;
					ch = fgetc(pf);
					if (ch == '/') {
						state[0] = 1;
						state[1] = 1;
					}
					else if (ch == '*') {
						state[0] = 1;
						state[2] = 1;
					}
					else {
						flag = 1;
						printf("%c", c);
					}
					continue;
				}
				else {
					flag = 1;
					printf("%c", ch);
				}
			}

			else {
				if (state[1] == 1 && ch == '\n') {
					state[0] = 0;
					state[1] = 0;
					printf("\n");
				}
				else if (state[2] == 1 && ch == '/' && c == '*') {
					state[0] = 0;
					state[2] = 0;
				}
			}
			c = ch;
			if (ch == 10) {
				ch = fgetc(pf);
				break;
			}
			ch = fgetc(pf);
		}
	}
}
int main() {
	FILE* pf = fopen("dict.dic", "r");
	int array[6] = { 0 };
	int i = 0, res = 0;
	for (i = 0; i < 5; i++) {
		fscanf(pf, "%d", &array[i]);
	}
	int num = 0;
	scanf("%d", &num);
	if (num == 1) {
		delete(pf, 6, array[0]);
	}
	else {
		delete(pf, array[num - 2] + 1, array[num - 1]);
	}

	fclose(pf);
	pf = NULL;
	return 0;
}